package com.kevis.zhunblog.core.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName t_power_menu
 */
@TableName(value ="t_power_menu")
@Data
public class PowerMenuEntity implements Serializable {
    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 唯一的UUID,用于页面传输时保密
     */
    @TableField(value = "guid")
    private String guid;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 菜单名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 菜单等级
     */
    @TableField(value = "menu_level")
    private Integer menuLevel;

    /**
     * 父级id
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 排序,默认6666
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 是否显示 1:是 0:否
     */
    @TableField(value = "is_show")
    private Boolean isShow;

    /**
     * 是否跳转外部链接 0：否，1：是
     */
    @TableField(value = "is_jump_external_url")
    private Boolean isJumpExternalUrl;

    /**
     * 跳转地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 菜单类型：0：展示菜单；1：链接菜单；2：权限按钮
     */
    @TableField(value = "menu_type")
    private Integer menuType;

    /**
     * 权限按钮标识
     */
    @TableField(value = "menu_code")
    private String menuCode;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 打开方式
     */
    @TableField(value = "open_type")
    private String openType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 计算列 提供给前端组件
     */
    @TableField(exist = false)
    private String checkArr = "0";
}